package com.cmc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cmc.bo.UserBO;
import com.cmc.dao.UserDao;
import com.cmc.entity.User;
import com.cmc.service.UserService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

/**
 * @author chengmingchao
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserDao, User> implements UserService {


    @Override
    public void saveUser(UserBO userBO) {
        User user=new User();
        BeanUtils.copyProperties(userBO,user);
        this.save(user);
    }
}
